﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using AjaxControlToolkit;

[assembly: System.Web.UI.WebResource("OpenPhotoAlbum.Controls.Paginator.js", "text/javascript")]

namespace OpenPhotoAlbum.Controls
{
	[ClientScriptResource("OpenPhotoAlbum.Controls.Paginator", "OpenPhotoAlbum.Controls.Paginator.js")]
	public class Paginator: ScriptControlBase
	{
		public Paginator() :
			base(System.Web.UI.HtmlTextWriterTag.Span)
		{
			TotalPages = 1;
		}

		[ExtenderControlProperty]
		public string PreviousPageText { get { return Resources.Strings.Controls_PreviousPage; } }

		[ExtenderControlProperty]
		public string NextPageText { get { return Resources.Strings.Controls_NextPage; } }

		[ExtenderControlProperty]
		public string PageFormat { get { return Resources.Strings.Controls_PageInfo; } }

		[ExtenderControlProperty]
		public int TotalPages { get; set; }

		[ExtenderControlEvent]
		public string PageIndexChanged { get; set; }
	}
}
